﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace erse253_homework.Auxiliar_Forms
{
    public partial class StaticalTool : Form
    {
        public StaticalTool(double[,] data)
        {

            NumericalSolutions solution = new NumericalSolutions();
            InitializeComponent();

            textBox1.Text = solution.Min(data).ToString();

            textBox2.Text = solution.Max(data).ToString();
            textBox3.Text = solution.Mean(data).ToString();
            textBox4.Text = solution.StdDeviationMean(data).ToString();
            textBox5.Text = solution.CoefficienfVariation(data).ToString();
            textBox6.Text = solution.NumberOfPoints(data).ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
